<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
    <style>
        .my{
            color: red;
        }
    </style>
</head>
<body>
<!--v-bind：为 HTML 标签绑定属性值。可省略-->
<div id="app">
    <a v-bind:href="url">百度一下</a>
    <a :href="url">百度一下</a>
    <div :class="cls">我是div</div>
</div>

<script>
    let vm = new Vue({
        el:"#app",
        data:{
            url:"https://www.baidu.com",
            cls:"my"
        }
    })
</script>
</body>
</html>